/**
 * 
 */
package com.toncen.samepms.common;

import java.io.Serializable;

/**
 * 系统Domain接口
 * 
 * @author tch
 * 
 * update fy 2013-10-23
 * 添加导入前domain处理方法
 */
public interface IDomain extends Serializable, Cloneable {
	/**
	 * 未持久化的id值
	 */
	long UNSAVED_ID = -1;

	/**
	 * @return
	 */
	public long getId();

	/**
	 * @param id
	 */
	public void setId(long id);

	/**
	 * @return the state
	 */
	public int getState();

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(int state);

	/**
	 * @return
	 */
	public boolean isSaved();
	
	/**
	 * @param domain
	 */
	public IDomain beforeImportSave(IDomain domain);
}
